package com.tcs.test.designmodel.garnisher;

/**
 * 摩卡调料
 * @ClassName : Mocha
 * @Author : 神经刀
 * @Date : 2019/5/28 : 23:07
 * @Version : 1.0
 */
public class Mocha extends CondimentDecorator {

    public Mocha(Beverage beverage) {
        super(beverage);
    }

    @Override
    public String getDescription() {
        return "摩卡 调料";
    }

    @Override
    public double cost() {
        return this.beverage.cost() + 0.2;
    }
}
